package com.tedu.com.tedu;

public class array {
    public static void main(String[] args) {
        int num[]={1,2,3,4,5,6,7,8,9};
        int nums[]=new int[5];
        System.arraycopy(num, 1, nums, 0, 4);
        for (int num2: nums){
            System.out.println(num2);
        }
    }



}
